//
//  UIColor+KaiXin.m
//  JiPin
//
//  Created by HaiJiao Chen on 12-1-5.
//  Copyright (c) 2012年 Kaixin. All rights reserved.
//

#import "KXUIColor.h"

@implementation UIColor (KaiXin)
+ (UIColor*)colorWithARGB:(NSInteger)argb
{
    CGFloat red = (argb>>16)&0xFF;
    CGFloat green = (argb>>8)&0xFF;
    CGFloat blue = argb&0xFF;
    CGFloat alpha = 255;
    if (argb > 0xFFFFFF)
    {
        alpha = (argb>>24)&0xFF;
    }
    
    return [UIColor colorWithRed:red/255.0 green:green/255.0 blue:blue/255.0 alpha:alpha/255.0];
}

@end
